package com.cy.yqyquestion.demos.web.compnent;

import com.cy.yqyquestion.demos.web.vo.ContextBean;
import com.cy.yqyquestion.demos.web.vo.QueryVo;
import com.cy.yqyquestion.entity.Purchase;
import com.cy.yqyquestion.service.PurchaseService;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.core.NodeIfComponent;
import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;

/**
 * @Author 朝闻道
 * @Date 2024年04月01日 10:02
 * @Description
 */
@Slf4j
@LiteflowComponent("PurchaseJudge")
public class PurchaseJudge extends NodeIfComponent {


    @Resource
    private FlowExecutor flowExecutor;

    @Resource
    private PurchaseService purchaseService;


    @Override
    public boolean processIf() throws Exception {

        boolean b = System.currentTimeMillis() % 2 == 1;
        if (b) {
            return true;
        }

        return false;
    }
}
